#include "./device_info.h"

namespace service {

driver::flash::Store<DeviceInfo, driver::flash::Base> deviceInfo;

void add_price(uint32_t price) {
    deviceInfo->price_sum += price;
    deviceInfo.save();
}

void add_sweet() {
    deviceInfo->sweet_count ++;
    deviceInfo.save();
}

}
